<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>

<body>
    <input type="text" placeholder="姓名"><br>
    <input type="text" placeholder="地址"><br>
    <button>传参</button><br>
    <input type="text" readonly>
    <script>
        var inputs = document.querySelectorAll('input');
        var btn = document.querySelector('button');
        btn.onclick = function() {
            var v1 = inputs[0].value;
            var v2 = inputs[1].value;
            inputs[2].value = `我叫${v1}，家住${v2}`
        }
    </script>
</body>

</html>